<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="../static/css/My_book.css">
    <script src="../static/jquery.min.js"></script>
    <script src="/static/jquery-3.3.1.min.js"></script>
    <style>
        #disappare {
    border: 3px solid #ccc;
    border-radius: 5px;
    background: #fff;
    font-size: 20px;
    width: 300px;
    height: 60px;
    position: absolute;
    z-index: 9999;
    top: 50%;
    left: 50%;
    margin: -125px 0 0 -150px;
    text-align: center;
}

#disappare p {
    padding: 5px;
    font-size: 16px;
    color: red;
    text-align: center;
}
    </style>
</head>
<body>
<div class="container">

    <header>
        <iframe src="/Header/" width="1200px" FrameBorder="0" height="135px"></iframe>
    </header>

    <section id="content" style="display: flex;margin-left: 20px">
        <div id="disappare" style="display: none">
            <p id="disapparep">111</p>
        </div>
        <aside id="left">
            <img width="150" height="200" src={{ novels_list.book_image }}>
        </aside>
        <section id="middle">
            <span style="font-size: 30px">{{ novels_list.book_name }}&nbsp&nbsp&nbsp&nbsp&nbsp</span>

            <p></p>
            <div style="display:flex;">
                <div class="NovelType">
                    <div>{{ novels_list.book_state }}</div>
                </div>
                <div class="NovelType">
                    <div>{{ kind_list.kind_name }}</div>
                </div>
            </div>
            <div style="line-height: 30px;width: 600px;height: 30px">
                <span>{{ novels_list.book_introduction }}</span>
            </div>
        </section>
    </section>
    <section id="content1" style="margin-left: 20px">
        <div style="height: 50px">
            <aside id="left1" style="display:flex;">
                <div class="button2">
                <span id="detail" style="cursor: pointer;">
                    作品信息
                </span>
                </div>
                <div class="button2" style="width: 100px">
                <span id="catalog" style="cursor: pointer;">
                    目录
                </span>
                </div>
                <div class="button2" style="width: 150px">
                    <a id="write" href="/Write_chapter/?book_id={{ novels_list.book_id }}">
                <span style="cursor: pointer;">
                    添加章节
                </span>
                    </a>
                </div>
                <div class="button2" style="width: 200px">
                    <a id="genggai" href="/Update_book/?book_id={{ novels_list.book_id }}">
                <span style="cursor: pointer;">
                    更改作品信息
                </span>
                    </a>
                </div>
            </aside>
        </div>
    </section>
    <section id="Bottom_content_1_1" style="margin-left: 20px">
        <img src="../static/image/line_1.png">
        <div id="chapter">
            <ul style="position: relative;float: left">
                {% for row in chapter_list %}
                    <div class="chapter_name">
                        <a id="chapter_a"
                           href="/Update_chapter/?chapter_id={{ row.chapter_id }}&book_id={{ row.book_id }}">
                            <li>{{ row.chapter_name }}</li>
                        </a>
                    </div>
                {% endfor %}
            </ul>
        </div>
    </section>
</div>
<input id='result' type="text" value="{{ result }}" style="display:none;">
</body>
<script>
    window.onload = function ()  {
        var result = $('#result').attr('value');
        if (result != '') {
            $("#disappare p").text(result);
            $("#disappare").css('display','block');
            $('#disappare').delay(3000).hide(300);
        }
    }
</script>
</html>